package main
import(
	"fmt"
)


type Monster struct{
	Name string
	Age int
}
func main(){
	var npc1 Monster
	npc1.Name = "npc1"
	npc1.Age = 500

	npc2 := npc1 // 结构体是值类型 默认为值拷贝
	npc2.Name ="npc2"

	fmt.Println("npc1=",npc1) // npc1= {npc1 500}
	fmt.Println("npc2=",npc2) // npc2= {npc2 500}
}